{extend  name="manage@public/layout" /}
{block name="style"}
<style>
.mini-navbar{background: white;}
.form-group{height: 34px;}
.form-group label{float: left;clear:both;text-align: right;}
.form-group div{float: left;}
</style>
{/block}
{block name="content"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <input type="hidden" name="pay_id" value="{notempty name="info"}{$info.id}{/notempty}" />
            <div class="form-group">
                <label class="col-sm-3 control-label">渠道</label>
                <div class="col-sm-5">
                    <select id="channel_id" class="form-control m-b" name="channel_id">
                        <option value="0">请选择</option>
                        {volist name="channel" id="vo"}
                        <option value="{$vo.id}" {notempty name="info"}{eq name="info['channel_id']" value="$vo.id"}selected{/eq}{/notempty} >{$vo.title}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">支付类型</label>
                <div class="col-sm-5">
                    <select id="payment" class="form-control m-b" name="payment">
                        <option value="0">请选择</option>
                        {volist name="paymentType" id="vo"}
                        <option value="{$key}" {notempty name="info"}{eq name="info['pay_type']" value="$key"}selected{/eq}{/notempty} >{$vo}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">渠道编码</label>
                <div class="col-sm-5">
                    <input type="text" placeholder="根据上游支付编码填写" name="channel_code" value="{notempty name="info"}{$info.code}{/notempty}" class="form-control">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">成本费率(%)</label>
                <div class="col-sm-5">
                    <input type="text"name="cost_rate" placeholder="请输入成本费率" value="{notempty name="info"}{$info.cost}{/notempty}" class="form-control">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">当日限额</label>
                <div class="col-sm-5">
                    <input type="text" name="qualified" placeholder="请输入当日前额" value="{notempty name="info"}{$info.qualified|abs|default=''}{/notempty}" class="form-control">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">最低金额</label>
                <div class="col-sm-5">
                    <input type="text" name="min_amount" placeholder="请输入最低金额" value="{notempty name="info"}{$info.min_amount|abs|default=''}{/notempty}" class="form-control">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">最高金额</label>
                <div class="col-sm-5">
                    <input type="text" name="max_amount" placeholder="请输入最高金额" value="{notempty name="info"}{$info.max_amount|abs|default=''}{/notempty}" class="form-control">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">固定金额</label>
                <div class="col-sm-5">
                    <input type="text" name="fixed_amount" placeholder="多个金额用|隔开" value="{notempty name="info"}{$info.fixed_amount}{/notempty}" class="form-control">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">倍数金额</label>
                <div class="col-sm-5">
                    <input type="text" name="double_amount" placeholder="请输入倍数金额" value="{notempty name="info"}{$info.double_amount|abs|default=''}{/notempty}" class="form-control">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label">排除尾数金额</label>
                <div class="col-sm-5">
                    <input type="text" name="exclude_tail" placeholder="多个金额用|隔开" value="{notempty name="info"}{$info.exclude_tail}{/notempty}" class="form-control">
                </div>
            </div>
            <div style="text-align: center;" class="modal-footer">
                <button class="btn btn-primary btn-payment btn-mch">确定</button>
            </div>
        </div>
    </div>
    {/block}
    {block name="script"}
<script src="/static/js/admin/channel.js"></script>
{/block}